import BasicLayout from '@/layouts/basic-layout';

const meta = {
  auth: true
};

export default {
  path: '/device-alarm',
  name: 'device-alarm',
  redirect: {
    name: `device-alarm/alarm-config`
  },
  meta,
  component: BasicLayout,
  children: [
    {
      path: 'alarm-config',
      name: `alarm-config`,
      meta: {
        ...meta,
        title: '报警配置'
      },
      component: () => import('@/pages/device-alarm/alarm-config')
    },
    {
      path: 'alarm-list',
      name: `alarm-list`,
      meta: {
        ...meta,
        title: '报警列表'
      },
      component: () => import('@/pages/device-alarm/alarm-list')
    }
  ]
};
